package main.KeyboardIO;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class KIO {
    public static void main(String[] args) {
        try{
            kInput();
        }catch (IOException e){
            e.printStackTrace();
        }

    }
    public static void kInput() throws IOException {
        InputStreamReader in = new InputStreamReader(System.in);
        BufferedReader bIn = new BufferedReader(in);
        String str = new String();
        while(!(str = bIn.readLine()).equals("exit")){
            System.out.println(str);
        }
        bIn.close();
        in.close();
    }
}
